﻿using UnityEngine;

public class Chest : MonoBehaviour {

    public void OnTriggerEnter2D(Collider2D collision)
    {
        Debug.Log("chest enter");
    }

    public void OnCollisionEnter2D(Collision2D collision)
    {
        Debug.Log("chest center");
    }

    public void Explosion()
    {
        GameController.Instance.ChestDestory();
        gameObject.SetActive(false);
    }
}
